<cfif IsUserInRole("Super User")>
	<cfinclude template="#request.pathToUI#/reports/gds.cfm" />
<cfelse>
	<p>Not available</p>
	<cfabort>
</cfif>
	
<!--- <cfparam name="doUpdate" default="false">
<cfparam name="action" default="">
<cfparam name="studentID" type="integer" default="0">

<cfif doUpdate>

	<cfswitch expression="#action#">
		<cfcase value="confirm">
			<cfquery name="ConfirmGDSMatch" datasource="calgrants_workshops">
				update Student
				set Confirmed = 1
				where Student_ID = #studentID#
			</cfquery>
		</cfcase>
		<cfcase value="reject">
			<cfquery name="ConfirmGDSMatch" datasource="calgrants_workshops">
				update Student
				set Rejected = 1
				where Student_ID = #studentID#
			</cfquery>
		</cfcase>
		<cfcase value="followup">
			<cfquery name="ConfirmGDSMatch" datasource="calgrants_workshops">
				update Student
				set Follow_Up = 1
				where Student_ID = #studentID#
			</cfquery>
		</cfcase>
		<cfdefaultcase>
			Action is required.  Click the back button in your browser to return to the last record.
			<cfabort>
		</cfdefaultcase>
	</cfswitch>

</cfif>

<cfquery name="GetLowConfidenceMatches" datasource="calgrants_workshops">
	SELECT     *
	FROM         GetLowConfidenceMatches
</cfquery>

<style>
	td {font-size: 8pt;}
</style>

<form action="#script_name#" method="post">
<input type="hidden" name="doUpdate" value="true">
<cfoutput>
	<p>Total Records: #GetLowConfidenceMatches.RecordCount#</p>
	<cfloop query="GetLowConfidenceMatches">
		<table border="1" cellpadding="4" cellspacing="1">
			<tr>
				<th>Survey and GDS Data</th>
				<th>Match Round</th>
				<th>Actions</th>
			</tr>
			<tr valign="top">
				<td>
					<table border="1" cellpadding="4" cellspacing="1" width="700">
						<tr>
							<th>Field</th>
							<th>Survey Data</th>
							<th>GDS Data</th>
						</tr>
						<tr>
							<th>Name</th>
							<td>
								#First_Name# #Last_Name#<br>
							</td>
							<td>
								#First_Name_GDS# #Last_Name_GDS#<br>
							</td>
						<tr>
							<th>Address</th>
							<td>
								#Address#<br>
								#City#, CA #Zip_Code#<br>
							</td>
							<td>
								#Address_GDS#<br>
								#City_GDS#, CA #Zip_Code_GDS#<br>
							</td>
						</tr>
						<tr>
							<th>SSN</th>
							<td>
								#SSN#<br>
							</td>
							<td>
								#Right(SSN_GDS, 4)#<br>
							</td>
						</tr>
						<tr>
							<th>DOB</th>
							<td>
								<cfif IsDate(DOB)>
									#DateFormat(DOB, "m/d/yyyy")#<br>
								</cfif>
							</td>
							<td>
								<cfif IsDate(DOB_GDS)>
									#DateFormat(DOB_GDS, "m/d/yyyy")#<br>
								</cfif>
							</td>
						</tr>
						<tr>
							<th>Phone(s)</th>
							<td>
								#Phone1#<br>
								#Phone2#
							</td>
							<td>
								#Left(Phone_GDS, 3)#-#Mid(Phone_GDS, 4, 3)#-#Right(Phone_GDS, 4)#
							</td>
						</tr>
					</table>
				</td>
				<td>
					#GDS_Match_Round#
				</td>
				<td>
					<p><a href="#script_name#?doUpdate=true&action=confirm&studentID=#Student_ID#">Confirm</a></p>
					<p><a href="#script_name#?doUpdate=true&action=reject&studentID=#Student_ID#">Reject</a></p>
					<p><a href="#script_name#?doUpdate=true&action=followup&studentID=#Student_ID#">Follow-Up</a></p>
				</td>
			</tr>
		</table>
	</cfloop>
	<input type="submit" value="Submit">
</cfoutput>
</form> --->
